<?php

/**
 * StringUtils
 */
class StringUtils
{
	private static $_instance;
	
	function __construct() {
		self::$_instance =& $this;
	}
	
	public static function getInstance()
	{
		if (self::$_instance == NULL)
			self::$_instance = new StringUtils();
		return self::$_instance;
	}
	
	public function decodeHTMLString($input)
	{
		$output = str_replace(array("&lt;", "&gt;", '&amp;', '&#39;', '&quot;','&lt;', '&gt;', '&nbsp;'), 
					array("<", ">",'&',"'",'"','<','>', ''), htmlspecialchars_decode($input, ENT_NOQUOTES));
					
		return $output; 
	}
}


?>